package com.qidian.buy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qidian.buy.pojo.Content;
import com.qidian.buy.pojo.ContentCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 戴着假发的程序员
 * @company 起点编程
 * @date 2023/9/6 10:57
 */
public interface ContentMapper extends BaseMapper<Content> {

    List<Content> queryByCatMark(String catMark);

    /**
     * 多条件的分页查询
     * @param content
     * @return
     */
    IPage<Content> queryByPage(IPage<Content> page,@Param("content") Content content);
}
